$(function () {
    reportFormValid();
});
//验证信息
function reportFormValid() {
    $("#reportform").validate({
        rules: {
            reportCode: {
                required: true
            },
            reportName: {
                required: true
            }
        },
        errorPlacement: function(error, element) {
            error.appendTo(element.parent());
        },
        errorElement: "span",
        errorClass: "errortips",
        success: 'valid',
        messages: {
            reportCode: {
                required: " (必填)"
            },
            reportName: {
                required: " (必填)"
            }
        }
    });
}
function submitForm() {
    if($('#reportform').valid()){
        return false;
    }
    return {};
}
